xm: Extend width of ID in 'xm list --label' to 5 digits
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:08:11 +0000 (15:08 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:08:11 +0000 (15:08 +0100)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/main.py

index 76f5d2a50bbf18525e6c75fcc6ff819152d35055..25f7c4e1da9a30eabd21eff1c86bd391353a4e90 100644 (file)
@@ -931,11 +931,11 @@ def xm_brief_list(doms):
         print format % d
 
 def xm_label_list(doms):
-    print '%-40s %3s %5s %5s %10s %9s %-10s' % \
+    print '%-40s %5s %5s %5s %10s %9s %-10s' % \
           ('Name', 'ID', 'Mem', 'VCPUs', 'State', 'Time(s)', 'Label')
 
     output = []
-    format = '%(name)-40s %(domid)3s %(mem)5d %(vcpus)5d %(state)10s ' \
+    format = '%(name)-40s %(domid)5s %(mem)5d %(vcpus)5d %(state)10s ' \
              '%(cpu_time)8.1f %(seclabel)10s'
 
     import xen.util.xsm.xsm as security